from black_cat_demo import BlackCat

xiaohei = BlackCat("小黑","黑色","雌","黑猫")

# 继承父类Animal的变量和方法
# print(xiaohei.__type)  # 单继承和多继承都不能继承父类的私有化方法和私有化变量
print(xiaohei.ethnic)

xiaohei.introduce()
xiaohei.to_String()
xiaohei.interface_demo()
xiaohei.eat()
xiaohei.sleep()

# 继承父类Cat的变量和方法
print(xiaohei.long_or_short)

xiaohei.run()
xiaohei.interface_cat()

xiaohei.introduce()

xiaohei.fun("小黑","喵喵喵","老鼠")



